<@admin.html >
	<script type="text/javascript" src="${base}/scripts/admin/event/index.js"></script>
	<div class="title">
					<h1>事件管理</h1>
					<span class="tTip"></span>
				</div>
				<div class="box">
					<form name="searchForm" id="searchForm" method="post" action="${base}/admin/event/">
						<div class="tx_table" style="margin-bottom:7px;">
							<div class="data">
								<h2>事件管理</h2>
								<table>
									<tbody>
										<tr style="background:#dcf7fe;">
											<td>
												事件题目：
												<input class="Q" type="text" name="" value="" size="26" />
												开始时间：
												<input class="Q" type="text" name="" value="" size="26" id="timeStart"/>
												结束时间：
												<input class="Q" type="text" name="" value="" size="26" id="timeEnd"/>
											</td>
										</tr>
									</tbody>
								</table>
								<div class="tx_sender">
									<input class="step" name="" type="submit" value="查 找" />
								</div>
							</div>
						</div>
					</form>
					<form id="topForm" name="topForm" method="post" action="${base}/admin/event/index!top">
						<input type="hidden" value="" name="id" id="top_hidden_id"/>
					</form>
					<form id="overForm" name="overForm" method="post" action="${base}/admin/event/index!over">
						<input type="hidden" value="" name="id" id="over_hidden_id"/>
					</form>
						<div class="tx_table" id="columns_list">
							<form name="removeForm" id="removeForm" method="post" action="${base}/admin/event/index!remove">
								<div class="data">
									<div class="tx_sender l_tr" style="padding:5px 10px;">
										<input class="step" name="" type="button" value="删 除" onClick="removeEvent();"/>
										<input class="step" name="" type="button" value="添加新事件" onclick="window.location='${base}/admin/event/index!add'"/>						
										<input type="hidden" name="id" value="" id="hidden_columns_id"/>							
									</div>
									<table class="l_tc">
										<caption>事件列表</caption>
										<thead>
											<tr>
												<th><input class="C" type="checkbox" value="" onclick="checkAll(this);"/></th>
												<th>事件标题</th>
												<th>当前状态</th>
												<th>创建时间</th>
												<th>操作</th>
											</tr>
										</thead>
										<tbody>
										<#list eventPage.result as event>
											<tr <#if event_index%2 != 0> class="c_odd" </#if>>
												<td><input class="C items" type="checkbox" value="${(event.id?c)}" name="ids"/></td>
												<td>
													<a class="c_modi" href="${base}/event/?id=${(event.id?c)}" target="_blank">${(event.title)!}</a>
												</td>
												<td>
													<#if event.top==1>置顶</#if>
													<#if event.over==1>已结束</#if>
													<#if event.over==0>未结束</#if>
												</td>
												<td>${event.createDate?string("yyyy-MM-dd")!}</td>
												<td>
													<#if event.over=0><a class="c_modi" href="${base}/admin/event/index!edit?id=${event.id}">编辑</a></#if>
													<#if event.top!=1><a class="c_modi" href="#" onClick="top(${event.id})">置顶</a></#if>
													<#if event.over!=1><a class="c_modi" href="#" onClick="over(${event.id})">结束</a></#if>													
												</td>
											</tr>
										</#list>							
										</tbody>
									</table>
									
								</div>
							</form>
							<@admin.pagination_admin div="columns_list" />
						</div>
				</div>
</@admin.html >